﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="S7.ShowLoggedInAccounts"
	x:Name="Window"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
    Title="Logged In Customers" Height="600" Width="800" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18" Loaded="Window_Loaded">
    <Grid>
    	<Grid Margin="8" Grid.Column="1">
    		<Grid Height="40" VerticalAlignment="Top">
    			<Label HorizontalAlignment="Center" Content="Logged In Customers" VerticalAlignment="Center"/>
    			<TextBox x:Name="tbSearch" HorizontalAlignment="Right" Margin="0,8" Width="200" TextWrapping="Wrap" FontSize="12" KeyUp="tbSearch_KeyUp" />
    			<Image HorizontalAlignment="Right" Width="24" Source="/S7;Component/Resources/Graphics/Search.png" Stretch="Uniform" Height="24"/>
    		</Grid>
    		<dg:DataGrid x:Name="lbAccounts" Background="#FF333333" AutoGenerateColumns="False" Margin="0,40,0,-16.17">
    			<dg:DataGrid.Columns>
    				<dg:DataGridTemplateColumn Header="Image">
    					<dg:DataGridTemplateColumn.CellTemplate>
    						<DataTemplate>
    							<Grid>
    								<Image Source="{Binding Picture}" Width="64" Height="64" Stretch="UniformToFill"/>
    							</Grid>
    						</DataTemplate>
    					</dg:DataGridTemplateColumn.CellTemplate>
    				</dg:DataGridTemplateColumn>
    				<dg:DataGridTextColumn Header="User Name" Binding="{Binding UserName}"/>
    				<dg:DataGridTextColumn Header="First Name" Binding="{Binding FirstName}"/>
    				<dg:DataGridTextColumn Header="Last Name" Binding="{Binding LastName}"/>
    				<dg:DataGridTextColumn Header="Address" Binding="{Binding Address}"/>
    				<dg:DataGridTextColumn Header="Mobile" Binding="{Binding Mobile}"/>
    				<dg:DataGridTextColumn Header="Email" Binding="{Binding Email}"/>
    				<dg:DataGridTextColumn Header="Registeration Date" Binding="{Binding AtDate}"/>					
    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
    	</Grid>
    </Grid>
</Window>